<include file="Common:layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>基本设置</h3>
            </div>

        </div>
    </div>
    <!-- 操作说明 -->
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span> </div>
        <ul>
            <li>修改商城模板相关配置信息。</li>
        </ul>
    </div>
    <form method="post" id="handlepost" action="{:U('System/information')}" enctype="multipart/form-data" name="form1">
        <input type="hidden" name="form_submit" value="ok" />
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label>开启短信服务</label>
                </dt>
                <dd class="opt">
                    <select name="open_code">
                        <option value="1" <if condition="$configs['open_code'] eq 1">selected</if>>开启</option>
                        <option value="0" <if condition="$configs['open_code'] eq '0'">selected</if>>关闭</option>
                    </select>
                    <p class="notic">订单生成，充值等微信模板消息提示</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>订单生成发送短信</label>
                </dt>
                <dd class="opt">
                    <select name="order_send_sms">
                        <option value="1" <if condition="$configs['order_send_sms'] eq 1">selected</if>>开启</option>
                        <option value="0" <if condition="$configs['order_send_sms'] eq '0'">selected</if>>关闭</option>
                    </select>
                    <p class="notic">订单生成，充值等微信模板消息提示</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>超时确认收货时间</label>
                </dt>
                <dd class="opt">
                    <input name="over_day" value="{$configs.over_day}" type="text" data-type="number" class="w30" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')"/>
                    <p class="notic">从订单发货开始，以（天）为单位</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>订单支付超时时间</label>
                </dt>
                <dd class="opt">
                    <input name="over_order_time" value="{$configs.over_order_time}" type="text" data-type="number" class="w30" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')"/>
                    <p class="notic">从订单生成开始，以（分钟）为单位</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>模板消息</label>
                </dt>
                <dd class="opt">
                    <select name="module_msg">
                        <option value="1" <if condition="$configs['module_msg'] eq 1">selected</if>>开启</option>
                        <option value="2" <if condition="$configs['module_msg'] eq 2">selected</if>>关闭</option>
                    </select>
                    <p class="notic">订单生成，充值等微信模板消息提示</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>库存预警</label>
                </dt>
                <dd class="opt">
                    <input name="stock_warning" value="{$configs.stock_warning}" type="text" data-type="number" class="w30" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')"/>
                    <p class="notic">网站名称，将显示在前台顶部欢迎信息等位置</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>注册审核</label>
                </dt>
                <dd class="opt">
                    <select name="agent_check">
                        <option value="1" <if condition="$configs['agent_check'] eq 1">selected</if>>开启</option>
                        <option value="2" <if condition="$configs['agent_check'] eq 2">selected</if>>关闭</option>
                    </select>
                </dd>
            </dl>
            <div class="bot">
                <input type="hidden" name="inc_type" value="{$inc_type}">
                <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="document.form1.submit()">确认提交</a>
            </div>
        </div>
    </form>
</div>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>
</body>
<script type="text/javascript">
    function img_call_back(fileurl_tmp)
    {
        $("#store_logo").val(fileurl_tmp);
        $("#img_a").attr('href', fileurl_tmp);
        $("#img_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");
    }
</script>
</html>